<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title></title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet"  type="text/css" href="../asset/css/bootstrap.css">
  <link rel="stylesheet" type="text/css" href="../asset/css/animate.css">
  <link rel="stylesheet" type="text/css" href="../asset/css/font-awesome.css">
  <link rel="stylesheet" type="text/css" href="../asset/css/layout.css">
  <link rel="stylesheet" type="text/css" href="../asset/css/host.css">
</head>

<body>
  <div id="qrcode" calss="hide"></div>
  <!-- 头部 开始 -->
  <header id="header" class="navbar animated fadeInDown">
    <div class="container">
      <div class="navbar-inner">
        <h3>
          <i class="icon-home"></i>
          <span id="header-title">基于socket.io的即时投票系统</span>
        </h3>
        <span class="new-system">
          <a id="qrcode-btn" class="btn btn-primary">查看二维码</a>
          <a id="new-item-btn" class="btn btn-success">新建一个投票</a>
        </span>
      </div>
    </div>
  </header>
  <!-- 头部 结束 -->
  <!-- 主体 开始 -->
  <section id="main" class="wrap animated fadeInUp">
    <!-- 投票和 开始 -->
    <div class="main-box pull-left alert alert-info opt" style="padding: 8px 12px;">
      <div class="main-header">
        <h3 class="btn btn-md btn-primary" style="margin-top: 0;"><i class="icon-umbrella"></i>主题：<span id="item-title">[ 示例 ]关于大学生谈恋爱你是持怎样的观点呢？</span></h3>
        <div class="content-answer">
          <ol id="item-list" class="answer-box alert alert-warning opt" style="padding: 8px 12px; margin: 8px 0;">
            <li>支持</li>
            <li>不支持</li>
            <li>无所谓</li>
          </ol>
        </div>
      </div>
      <div class="view">
        <div id="canvasDiv"></div>
      </div>
    </div>
    <!-- 投票和图表 结束 -->
    <!-- 聊天 开始 -->
    <div class="chat-box pull-right alert alert-success opt">
      <div id="chat-in-box">
        <div class="timeline-background">
          <div class="timeline-start"></div>
          <div class="timeline-end"></div>
        </div>
        <section class="timeline-item">
          <div class="timeline-tail">
            <div class="timeline-node"></div>
          </div>
          <div class="timeline-content">
            <p class="timeline-text">
              欢迎来到投票系统
            </p>
          </div>
        </section>
      </div>
    </div>
    <!-- 聊天 结束 -->
  </section>
  <!-- 主体 结束 -->
  <!-- 模态框 开始  -->
  <div class="modal fade" id="start-box" tabindex="-1" role="dialog" 
     aria-labelledby="start-box" aria-hidden="true">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
          <h4 class="modal-title" id="details-title">
             新建一个投票话题
          </h4>
        </div>
        <div class="modal-body">
          <form method="post" class="alert alert-warning opt" id="details-form">
            <div class="form-group">
              <label class="col-md-2 control-label" for="title">主题</label>
              <input type='text' maxlength='40' name="title" placeholder="请输入主题/40字以内"/>
            </div>
          </form>
          <div class="form-group" style="margin: 12px 4px;">
            <a id="add-choice" class="btn btn-primary">添加选项</a>
            <a id="del-choice" class="btn btn-warning">删除选项</a>
          </div>
        </div> 
        <div class="modal-footer">
          <button type="button" class="btn btn-default" 
             data-dismiss="modal">取消
          </button>
          <button id="ensureNew" type="button" class="btn btn-success" data-dismiss="modal">提交
          </button>
        </div>
      </div>
    </div>
  </div>
  <!-- 模态框 结束 -->

  <script src="../asset/js/jquery.js"></script>
  <script src="../asset/js/qrcode.min.js"></script>
  <script src="../asset/js/bootstrap.js"></script>
  <script src="../asset/js/ichart.1.2.src.js"></script>
  <script src="../asset/js/host.js"></script>
  <script src="../asset/js/tool.js"></script>
  <script>
   $(function () { $("[data-toggle='tooltip']").tooltip(); });
  </script>
</body>
</html>